<?php
$tdataproforma_invoice_items=array();
	$tdataproforma_invoice_items[".NumberOfChars"]=80; 
	$tdataproforma_invoice_items[".ShortName"]="proforma_invoice_items";
	$tdataproforma_invoice_items[".OwnerID"]="";
	$tdataproforma_invoice_items[".OriginalTable"]="proforma_invoice_items";


	
//	field labels
$fieldLabelsproforma_invoice_items = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsproforma_invoice_items["English"]=array();
	$fieldToolTipsproforma_invoice_items["English"]=array();
	$fieldLabelsproforma_invoice_items["English"]["id"] = "Id";
	$fieldToolTipsproforma_invoice_items["English"]["id"] = "";
	$fieldLabelsproforma_invoice_items["English"]["proforma_commercial_id"] = "Proforma Commercial";
	$fieldToolTipsproforma_invoice_items["English"]["proforma_commercial_id"] = "";
	$fieldLabelsproforma_invoice_items["English"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoice_items["English"]["part_no"] = "";
	$fieldLabelsproforma_invoice_items["English"]["uom_id"] = "Uom";
	$fieldToolTipsproforma_invoice_items["English"]["uom_id"] = "";
	$fieldLabelsproforma_invoice_items["English"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoice_items["English"]["quantity"] = "";
	$fieldLabelsproforma_invoice_items["English"]["description"] = "Description";
	$fieldToolTipsproforma_invoice_items["English"]["description"] = "";
	$fieldLabelsproforma_invoice_items["English"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoice_items["English"]["unit_price"] = "";
	$fieldLabelsproforma_invoice_items["English"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoice_items["English"]["total_price"] = "";
	if (count($fieldToolTipsproforma_invoice_items["English"])){
		$tdataproforma_invoice_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["proforma_commercial_id"] = "Proforma Commercial Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["proforma_commercial_id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["part_no"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["uom_id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["quantity"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["unit_price"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"]["total_price"] = "";
	if (count($fieldToolTipsproforma_invoice_items["Chinese (Hong Kong S.A.R.)"])){
		$tdataproforma_invoice_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]=array();
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]=array();
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["proforma_commercial_id"] = "Proforma Commercial Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["proforma_commercial_id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["part_no"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["uom_id"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["quantity"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["description"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["unit_price"] = "";
	$fieldLabelsproforma_invoice_items["Chinese (Taiwan)"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"]["total_price"] = "";
	if (count($fieldToolTipsproforma_invoice_items["Chinese (Taiwan)"])){
		$tdataproforma_invoice_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsproforma_invoice_items["French"]=array();
	$fieldToolTipsproforma_invoice_items["French"]=array();
	$fieldLabelsproforma_invoice_items["French"]["id"] = "Id";
	$fieldToolTipsproforma_invoice_items["French"]["id"] = "";
	$fieldLabelsproforma_invoice_items["French"]["proforma_commercial_id"] = "Proforma Commercial Id";
	$fieldToolTipsproforma_invoice_items["French"]["proforma_commercial_id"] = "";
	$fieldLabelsproforma_invoice_items["French"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoice_items["French"]["part_no"] = "";
	$fieldLabelsproforma_invoice_items["French"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoice_items["French"]["uom_id"] = "";
	$fieldLabelsproforma_invoice_items["French"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoice_items["French"]["quantity"] = "";
	$fieldLabelsproforma_invoice_items["French"]["description"] = "Description";
	$fieldToolTipsproforma_invoice_items["French"]["description"] = "";
	$fieldLabelsproforma_invoice_items["French"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoice_items["French"]["unit_price"] = "";
	$fieldLabelsproforma_invoice_items["French"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoice_items["French"]["total_price"] = "";
	if (count($fieldToolTipsproforma_invoice_items["French"])){
		$tdataproforma_invoice_items[".isUseToolTips"]=true;
	}
}


	
	$tdataproforma_invoice_items[".NCSearch"]=true;

	

$tdataproforma_invoice_items[".shortTableName"] = "proforma_invoice_items";
$tdataproforma_invoice_items[".nSecOptions"] = 0;
$tdataproforma_invoice_items[".recsPerRowList"] = 1;	
$tdataproforma_invoice_items[".tableGroupBy"] = "0";
$tdataproforma_invoice_items[".mainTableOwnerID"] = "";
$tdataproforma_invoice_items[".moveNext"] = 1;




$tdataproforma_invoice_items[".showAddInPopup"] = false;

$tdataproforma_invoice_items[".showEditInPopup"] = false;

$tdataproforma_invoice_items[".showViewInPopup"] = false;


$tdataproforma_invoice_items[".fieldsForRegister"] = array();

$tdataproforma_invoice_items[".listAjax"] = true;

	$tdataproforma_invoice_items[".audit"] = false;

	$tdataproforma_invoice_items[".locking"] = false;
	
$tdataproforma_invoice_items[".listIcons"] = true;
$tdataproforma_invoice_items[".edit"] = true;
$tdataproforma_invoice_items[".inlineEdit"] = true;
$tdataproforma_invoice_items[".view"] = true;

$tdataproforma_invoice_items[".exportTo"] = true;

$tdataproforma_invoice_items[".printFriendly"] = true;

$tdataproforma_invoice_items[".delete"] = true;

$tdataproforma_invoice_items[".showSimpleSearchOptions"] = true;

$tdataproforma_invoice_items[".showSearchPanel"] = true;


$tdataproforma_invoice_items[".isUseAjaxSuggest"] = true;

$tdataproforma_invoice_items[".rowHighlite"] = true;


// button handlers file names

$tdataproforma_invoice_items[".addPageEvents"] = false;

$tdataproforma_invoice_items[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdataproforma_invoice_items[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdataproforma_invoice_items[".isUseTimeForSearch"] = false;

$tdataproforma_invoice_items[".isUseiBox"] = false;



$tdataproforma_invoice_items[".isUseInlineAdd"] = true;

$tdataproforma_invoice_items[".isUseInlineEdit"] = true;
$tdataproforma_invoice_items[".isUseInlineJs"] = $tdataproforma_invoice_items[".isUseInlineAdd"] || $tdataproforma_invoice_items[".isUseInlineEdit"];

$tdataproforma_invoice_items[".allSearchFields"] = array();

$tdataproforma_invoice_items[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "id";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "proforma_commercial_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_commercial_id", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "proforma_commercial_id";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "part_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("part_no", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "part_no";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "uom_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_id", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "uom_id";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "quantity";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "description";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "unit_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("unit_price", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "unit_price";	
}
$tdataproforma_invoice_items[".globSearchFields"][] = "total_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("total_price", $tdataproforma_invoice_items[".allSearchFields"]))
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "total_price";	
}


$tdataproforma_invoice_items[".googleLikeFields"][] = "id";
$tdataproforma_invoice_items[".googleLikeFields"][] = "proforma_commercial_id";
$tdataproforma_invoice_items[".googleLikeFields"][] = "part_no";
$tdataproforma_invoice_items[".googleLikeFields"][] = "uom_id";
$tdataproforma_invoice_items[".googleLikeFields"][] = "quantity";
$tdataproforma_invoice_items[".googleLikeFields"][] = "description";
$tdataproforma_invoice_items[".googleLikeFields"][] = "unit_price";
$tdataproforma_invoice_items[".googleLikeFields"][] = "total_price";



$tdataproforma_invoice_items[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "id";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "proforma_commercial_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_commercial_id", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "proforma_commercial_id";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "part_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("part_no", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "part_no";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "uom_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_id", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "uom_id";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "quantity";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "description";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "unit_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("unit_price", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "unit_price";	
}
$tdataproforma_invoice_items[".advSearchFields"][] = "total_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("total_price", $tdataproforma_invoice_items[".allSearchFields"])) 
{
	$tdataproforma_invoice_items[".allSearchFields"][] = "total_price";	
}

$tdataproforma_invoice_items[".isTableType"] = "list";


	

$tdataproforma_invoice_items[".isDisplayLoading"] = true;

$tdataproforma_invoice_items[".isResizeColumns"] = false;





$tdataproforma_invoice_items[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataproforma_invoice_items[".strOrderBy"] = $gstrOrderBy;
	
$tdataproforma_invoice_items[".orderindexes"] = array();

$tdataproforma_invoice_items[".sqlHead"] = "SELECT id,   proforma_commercial_id,   part_no,   uom_id,   quantity,   description,   unit_price,   total_price";
$tdataproforma_invoice_items[".sqlFrom"] = "FROM proforma_invoice_items";
$tdataproforma_invoice_items[".sqlWhereExpr"] = "";
$tdataproforma_invoice_items[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataproforma_invoice_items[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataproforma_invoice_items[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdataproforma_invoice_items[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["id"]=$fdata;
//	proforma_commercial_id
	$fdata = array();
	$fdata["strName"] = "proforma_commercial_id";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Proforma Commercial"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="id";
				$fdata["LookupTable"]="proforma_invoices";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_commercial_id";
	
		$fdata["FullName"]= "proforma_commercial_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["proforma_commercial_id"]=$fdata;
//	part_no
	$fdata = array();
	$fdata["strName"] = "part_no";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Part No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "part_no";
	
		$fdata["FullName"]= "part_no";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["part_no"]=$fdata;
//	uom_id
	$fdata = array();
	$fdata["strName"] = "uom_id";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Uom"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="uom_name";
				$fdata["LookupTable"]="uoms";
	$fdata["LookupOrderBy"]="uom_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "uom_id";
	
		$fdata["FullName"]= "uom_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["uom_id"]=$fdata;
//	quantity
	$fdata = array();
	$fdata["strName"] = "quantity";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Quantity"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "quantity";
	
		$fdata["FullName"]= "quantity";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["quantity"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "description";
	
		
		
		
		
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["description"]=$fdata;
//	unit_price
	$fdata = array();
	$fdata["strName"] = "unit_price";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Unit Price"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "unit_price";
	
		$fdata["FullName"]= "unit_price";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["unit_price"]=$fdata;
//	total_price
	$fdata = array();
	$fdata["strName"] = "total_price";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Total Price"; 
	
		
		$fdata["LinkPrefix"]="files/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "total_price";
	
		$fdata["FullName"]= "total_price";
	
		
		
		
		
		
			$fdata["UploadFolder"]="files"; 
		$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoice_items["total_price"]=$fdata;

	
$tables_data["proforma_invoice_items"]=&$tdataproforma_invoice_items;
$field_labels["proforma_invoice_items"] = &$fieldLabelsproforma_invoice_items;
$fieldToolTips["proforma_invoice_items"] = &$fieldToolTipsproforma_invoice_items;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["proforma_invoice_items"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["proforma_invoice_items"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="proforma_invoices";
	$masterTablesData["proforma_invoice_items"][$mIndex] = array(
		  "mDataSourceTable"=>"proforma_invoices"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "proforma_invoices"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$masterTablesData["proforma_invoice_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["proforma_invoice_items"][$mIndex]["detailKeys"][]="proforma_commercial_id";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto486=array();
$proto486["m_strHead"] = "SELECT";
$proto486["m_strFieldList"] = "id,   proforma_commercial_id,   part_no,   uom_id,   quantity,   description,   unit_price,   total_price";
$proto486["m_strFrom"] = "FROM proforma_invoice_items";
$proto486["m_strWhere"] = "";
$proto486["m_strOrderBy"] = "";
$proto486["m_strTail"] = "";
$proto487=array();
$proto487["m_sql"] = "";
$proto487["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto487["m_column"]=$obj;
$proto487["m_contained"] = array();
$proto487["m_strCase"] = "";
$proto487["m_havingmode"] = "0";
$proto487["m_inBrackets"] = "0";
$proto487["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto487);

$proto486["m_where"] = $obj;
$proto489=array();
$proto489["m_sql"] = "";
$proto489["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto489["m_column"]=$obj;
$proto489["m_contained"] = array();
$proto489["m_strCase"] = "";
$proto489["m_havingmode"] = "0";
$proto489["m_inBrackets"] = "0";
$proto489["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto489);

$proto486["m_having"] = $obj;
$proto486["m_fieldlist"] = array();
						$proto491=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "proforma_invoice_items"
));

$proto491["m_expr"]=$obj;
$proto491["m_alias"] = "";
$obj = new SQLFieldListItem($proto491);

$proto486["m_fieldlist"][]=$obj;
						$proto493=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_commercial_id",
	"m_strTable" => "proforma_invoice_items"
));

$proto493["m_expr"]=$obj;
$proto493["m_alias"] = "";
$obj = new SQLFieldListItem($proto493);

$proto486["m_fieldlist"][]=$obj;
						$proto495=array();
			$obj = new SQLField(array(
	"m_strName" => "part_no",
	"m_strTable" => "proforma_invoice_items"
));

$proto495["m_expr"]=$obj;
$proto495["m_alias"] = "";
$obj = new SQLFieldListItem($proto495);

$proto486["m_fieldlist"][]=$obj;
						$proto497=array();
			$obj = new SQLField(array(
	"m_strName" => "uom_id",
	"m_strTable" => "proforma_invoice_items"
));

$proto497["m_expr"]=$obj;
$proto497["m_alias"] = "";
$obj = new SQLFieldListItem($proto497);

$proto486["m_fieldlist"][]=$obj;
						$proto499=array();
			$obj = new SQLField(array(
	"m_strName" => "quantity",
	"m_strTable" => "proforma_invoice_items"
));

$proto499["m_expr"]=$obj;
$proto499["m_alias"] = "";
$obj = new SQLFieldListItem($proto499);

$proto486["m_fieldlist"][]=$obj;
						$proto501=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "proforma_invoice_items"
));

$proto501["m_expr"]=$obj;
$proto501["m_alias"] = "";
$obj = new SQLFieldListItem($proto501);

$proto486["m_fieldlist"][]=$obj;
						$proto503=array();
			$obj = new SQLField(array(
	"m_strName" => "unit_price",
	"m_strTable" => "proforma_invoice_items"
));

$proto503["m_expr"]=$obj;
$proto503["m_alias"] = "";
$obj = new SQLFieldListItem($proto503);

$proto486["m_fieldlist"][]=$obj;
						$proto505=array();
			$obj = new SQLField(array(
	"m_strName" => "total_price",
	"m_strTable" => "proforma_invoice_items"
));

$proto505["m_expr"]=$obj;
$proto505["m_alias"] = "";
$obj = new SQLFieldListItem($proto505);

$proto486["m_fieldlist"][]=$obj;
$proto486["m_fromlist"] = array();
												$proto507=array();
$proto507["m_link"] = "SQLL_MAIN";
			$proto508=array();
$proto508["m_strName"] = "proforma_invoice_items";
$proto508["m_columns"] = array();
$proto508["m_columns"][] = "id";
$proto508["m_columns"][] = "proforma_commercial_id";
$proto508["m_columns"][] = "part_no";
$proto508["m_columns"][] = "uom_id";
$proto508["m_columns"][] = "quantity";
$proto508["m_columns"][] = "description";
$proto508["m_columns"][] = "unit_price";
$proto508["m_columns"][] = "total_price";
$obj = new SQLTable($proto508);

$proto507["m_table"] = $obj;
$proto507["m_alias"] = "";
$proto509=array();
$proto509["m_sql"] = "";
$proto509["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto509["m_column"]=$obj;
$proto509["m_contained"] = array();
$proto509["m_strCase"] = "";
$proto509["m_havingmode"] = "0";
$proto509["m_inBrackets"] = "0";
$proto509["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto509);

$proto507["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto507);

$proto486["m_fromlist"][]=$obj;
$proto486["m_groupby"] = array();
$proto486["m_orderby"] = array();
$obj = new SQLQuery($proto486);

$queryData_proforma_invoice_items = $obj;
$tdataproforma_invoice_items[".sqlquery"] = $queryData_proforma_invoice_items;

$tableEvents["proforma_invoice_items"] = new eventsBase;

?>
